package vista;
import java.awt.BorderLayout;
import java.awt.LayoutManager;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

import javax.swing.JLabel;

public class VentanaPlayOff extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JButton btnReiniciar;
	private JButton btnPosiciones;
	private JButton btnCalendario;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VentanaPlayOff inst = new VentanaPlayOff();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VentanaPlayOff() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setBackground(new java.awt.Color(255,255,255));
			this.setResizable(false);
			getContentPane().setLayout(null);
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1, "Center");
				jPanel1.setLayout(null);
				jPanel1.setBackground(new java.awt.Color(255,255,255));
				jPanel1.setBounds(0, 0, 394, 272);
				{
					btnCalendario = new JButton();
					jPanel1.add(btnCalendario);
					btnCalendario.setText("Calendario");
					btnCalendario.setBounds(52, 93, 121, 22);
					btnCalendario.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnPosiciones = new JButton();
					jPanel1.add(btnPosiciones);
					btnPosiciones.setText("Posiciones");
					btnPosiciones.setBounds(223, 93, 121, 22);
					btnPosiciones.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnReiniciar = new JButton();
					jPanel1.add(btnReiniciar);
					btnReiniciar.setText("Reiniciar Liga");
					btnReiniciar.setBounds(137, 164, 121, 23);
					btnReiniciar.setBackground(new java.awt.Color(173,216,230));
					btnReiniciar.setSize(121, 22);
				}
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public void mostrarMensaje(String mensaje){
		JOptionPane.showMessageDialog(this, mensaje);
	}
	
	public void agregarListener(ActionListener accion){
		btnCalendario.addActionListener(accion);
		btnPosiciones.addActionListener(accion);
		btnReiniciar.addActionListener(accion);
	}
	
}
